package com.zy.explore.order.interfaces.frm;

import com.zy.explore.common.interfaces.frm.SortFieldFrm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * (表t_order)请求参数对象
 *
 * @author 中国印
 * @date 2021-09-20 20:17:28
 */
@ApiModel("表(t_order)实体类Frm")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderFrm {

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID", example = "1")
    private Integer id;


    /**
     * 产品ID
     */
    @ApiModelProperty(value = "商品ID", example = "1")
    private Integer goodsId;


    /**
     * 订单金额
     */
    @ApiModelProperty(value = "订单金额", example = "1.00")
    private BigDecimal amount;


    /**
     * 买家ID
     */
    @ApiModelProperty(value = "买家ID", example = "1")
    private Integer buyerId;


    /**
     * 卖家ID
     */
    @ApiModelProperty(value = "卖家ID", example = "1")
    private Integer sellerId;


    /**
     * 订单状态：1.待付款 2.已付款 3.已完成
     */
    @ApiModelProperty(value = "订单状态：1.待付款 2.已付款 3.已完成", example = "a")
    private String orderStatus;


    /**
     * 付款时间
     */
    @ApiModelProperty(value = "付款时间 yyyy-MM-dd", example = "2021-05-20")
    private Date payTime;

    /**
     * 付款时间起
     */
    @ApiModelProperty(value = "付款时间起 yyyy-MM-dd", example = "2021-05-20")
    private String payTimeBegin;

    /**
     * 付款时间止
     */
    @ApiModelProperty(value = "付款时间止 yyyy-MM-dd", example = "2021-05-20")
    private String payTimeEnd;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间 yyyy-MM-dd", example = "2021-05-20")
    private Date createTime;

    /**
     * 创建时间起
     */
    @ApiModelProperty(value = "创建时间起 yyyy-MM-dd", example = "2021-05-20")
    private String createTimeBegin;

    /**
     * 创建时间止
     */
    @ApiModelProperty(value = "创建时间止 yyyy-MM-dd", example = "2021-05-20")
    private String createTimeEnd;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间 yyyy-MM-dd", example = "2021-05-20")
    private Date updateTime;

    /**
     * 更新时间起
     */
    @ApiModelProperty(value = "更新时间起 yyyy-MM-dd", example = "2021-05-20")
    private String updateTimeBegin;

    /**
     * 更新时间止
     */
    @ApiModelProperty(value = "更新时间止 yyyy-MM-dd", example = "2021-05-20")
    private String updateTimeEnd;

    /**
     * 排序字段集合
     */
    @ApiModelProperty(value = "排序字段集合")
    List<SortFieldFrm> sortFields;

    /**
     * 查询页
     */
    @ApiModelProperty(value = "查询页", example = "1")
    private Integer pageNum;

    /**
     * 每页数量
     */
    @ApiModelProperty(value = "每页数量", example = "10")
    private Integer pageSize;
}

